package com.bonuo.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Contact extends BaseEntity {
    /** 联系人ID */
    private Integer id;
    @Excel (name = "学校/公司名称")
    private String schoolOrCompanyName;
    /** 院系/代理商ID */
    private Integer clientAgentId;
    @Excel(name = "院系/部门")
    private String faculty;
    @Excel(name = "职务")
    private String job;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "联系电话")
    private String phone;
    @Excel(name = "邮箱")
    private String email;
    @Excel(name = "其他联系方式")
    private String other;
    @Excel (name = "民族")
    private String nation;
    @Excel (name = "籍贯")
    private String nativePlace;
    @Excel (name = "身份证号")
    private String idcard;
    @Excel (name = "是否重点联系人",readConverterExp = "0=否,1=是")
    private Integer isImportant;
    @Excel (name = "重点联系人依据",dictType = "sys_key_contact_basis")  //,readConverterExp = "1=天职师大校友,2=邓老师学生,3=成功合作过,4=参观过博诺,5=大赛获奖,6=朋友"
    private String basis;
    @Excel(name = "类别",readConverterExp = "0=客户,1=代理商")
    private Integer type;

    private Integer customerId;

    private Integer delFlag;


    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    /** 创建者 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /** 当前用户部门ID */
    private Integer deptId;
    /** 用户ID */
    private Integer userId;
    /** 用于接收该用户及夏季用户姓名（用户名）  */
    private List<String> childrenOrMine;
    /** 排序 */
    private String sort;
}
